package com.csun.cmny.provider.model.dto;

import com.csun.cmny.base.dto.BaseQuery;
import com.csun.cmny.provider.validator.OmcUserTypeValidator;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
@Data
@Table(name = "cn_omc_user_type")
public class OmcUserTypeDto {
    /**
     * 人员类别id
     */
    private Long id;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 人员类别名
     */
    @NotNull(message = "{user.type.name.is.not.null}",groups = {OmcUserTypeValidator.class})
    @Size(min = 1,max = 250,message = "{user.type.name.out.range}",groups = {OmcUserTypeValidator.class})
    @Column(name = "user_type_name")
    private String userTypeName;


    /**
     * 人员类别编码
     */
    @NotNull(message = "{user.type.code.is.not.null}",groups = {OmcUserTypeValidator.class})
    @Size(min = 1,max = 20,message = "{user.type.code.out.range}",groups = {OmcUserTypeValidator.class})
    @Column(name = "user_type_code")
    private String userTypeCode;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建人ID
     */
    @Column(name = "creator_id")
    private Long creatorId;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 最近操作人
     */
    @Column(name = "last_operator")
    private String lastOperator;

    /**
     * 最后操作人ID
     */
    @Column(name = "last_operator_id")
    private Long lastOperatorId;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;


}